package com.huiyun.project.im.core.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huiyun.project.im.core.dto.ImUserDto;
import com.huiyun.project.im.entity.ImUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huiyun.project.im.common.auth.UserPrincipal;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author bogon
 * @since 2020-07-17
 */
public interface ImUserMapper extends BaseMapper<ImUser> {


    /**
     * 查询登陆用户信息(系统登陆用)
     *
     * @param uid
     * @return
     */
    UserPrincipal findPrincipal(@Param("userId") String uid);
}
